<!DOCTYPE html>
<%@ page language="java" import="com.compuvest.web.*" pageEncoding="UTF-8" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<fmt:setBundle basename="properties.Compuvest" var="cv" scope="page" />

<jsp:useBean id="sb" class="SQLBean" scope="application"/>
<jsp:useBean id="advertShow" class="AdvertShow" scope="application"/>
<jsp:useBean id="basket" class="Basket" scope="session"/>
<%
    String amazonId = request.getParameter("id");
    basket.setAmazonId(amazonId);
%>
<html>
<head>
<title><fmt:message key='webcorp' bundle='${cv}'/> Amazon Shipping</title>
<%@include file="./incl/scripts.txt" %>
<script type='text/javascript' src='https://static-na.payments-amazon.com/cba/js/us/PaymentWidgets.js'></script>
</head>
<body>

<div style="margin:10px 20px;">

<div id="AmazonAddressWidget"></div>
<script type='text/javascript' >
new CBA.Widgets.AddressWidget({
    merchantId: 'A3S3XOO7JN6CF5',
    displayMode: 'Edit',
    design:{size: { width:'400', height:'228' } },
    onAddressSelect: function(widget) {
        document.getElementById("Continue").disabled = false;
    }
}).render("AmazonAddressWidget");
</script>

<br/>
<form id="apayment" action='<%= "./"/*application.getInitParameter("https")*/ %>AmazonPayment.jsp' method='POST'>
  <input type="button" value="Continue" id="Continue" onClick="document.id('apayment').submit();" disabled="true" class='abutt'/>
</form>

</div>

</body>
<!--script type='text/javascript'>
var img = new Image();
img.src = (("http:" === document.location.protocol) ? "http://" : "https://") + 'www.compuvestb2b.com/WebStatus/amazon?pg=1';
</script-->
</html>
